package com.yiyuzi.admin.privilege;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yiyuzi.admin.privilege.domain.entity.PrivilegeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author yiyuzi
 * @date 2021/5/7 11:19
 */

@Mapper
@Component
public interface PrivilegeDao extends BaseMapper<PrivilegeEntity> {

    PrivilegeEntity selectOneByPath(@Param("path") String path);

    boolean deleteNotInIds(@Param("idList")List<Long> idList);
}
